package com.zx.ce.ws;


import java.util.ArrayList;
import java.util.List;

public class AAA {

    protected static List<List<String>> buildDatas() {
        List<List<String>> rows = new ArrayList<List<String>>();
        String companyNumber = "ZZZ02-01";
        String voucherNumber = "v001";
        String periodYear = "2022";
        String periodNumber = "3";
        String date = "2022-03-09";
        String voucherType = "记记";
        String description = "webservice test";
        String voucherAbstract = "webservice test";
        String creator = "lhh11";

        //列名
        List<String> cols = new ArrayList<String>();
        cols.add("companyNumber");
        cols.add("voucherNumber");
        cols.add("periodYear");
        cols.add("periodNumber");
        cols.add("bookedDate");
        cols.add("bizDate");
        cols.add("voucherType");
        cols.add("description");
        cols.add("voucherAbstract");
        cols.add("creator");

        cols.add("entrySeq");
        cols.add("accountNumber");
        cols.add("currencyNumber");
        cols.add("entryDC");

        cols.add("originalAmount");
        cols.add("debitAmount");
        cols.add("creditAmount");

        cols.add("asstSeq");
        cols.add("asstActType1");
        cols.add("asstActNumber1");
        cols.add("asstActName1");
        cols.add("asstActType2");
        cols.add("asstActNumber2");
        cols.add("asstActName2");

        cols.add("itemFlag");
        cols.add("oppAccountSeq");
        cols.add("oppAsstSeq");
        cols.add("primaryItem");
        cols.add("type");
        cols.add("cashflowAmountOriginal");
        cols.add("cashflowAmountLocal");
        rows.add(cols);

        //数据行1
        List<String> row = new ArrayList<String>();
        row.add(companyNumber);//companyNumber
        row.add(voucherNumber);//voucherNumber
        row.add(periodYear);//periodYear
        row.add(periodNumber);//periodNumber
        row.add(date);//bookedDate
        row.add(date);//bizDate
        row.add(voucherType);//voucherType
        row.add(description);//description
        row.add(voucherAbstract);//voucherAbstract
        row.add(creator);//creator

        row.add("1");//entrySeq
        row.add("1001");//accountNumber
        row.add("BB01");//currencyNumber
        row.add("1");//entryDC

        row.add("10");//originalAmount
        row.add("10");//debitAmount
        row.add("");//creditAmount

        row.add("");//asstSeq
        row.add("");//asstActType1
        row.add("");//asstActNumber1
        row.add("");//asstActName1
        row.add("");//asstActType2
        row.add("");//asstActNumber2
        row.add("");//asstActName2

        row.add("0");//itemFlag
        row.add("");//oppAccountSeq
        row.add("");//oppAsstSeq
        row.add("");//primaryItem
        row.add("");//type
        row.add("");//cashflowAmountOriginal
        row.add("");//cashflowAmountLocal
        rows.add(row);

        //数据行2
        row = new ArrayList<String>();
        row.add(companyNumber);//companyNumber
        row.add(voucherNumber);//voucherNumber
        row.add(periodYear);//periodYear
        row.add(periodNumber);//periodNumber
        row.add(date);//bookedDate
        row.add(date);//bizDate
        row.add(voucherType);//voucherType
        row.add(description);//description
        row.add(voucherAbstract);//voucherAbstract
        row.add(creator);//creator

        row.add("2");//entrySeq
        row.add("1131.01.01");//accountNumber
        row.add("BB01");//currencyNumber
        row.add("0");//entryDC

        row.add("5");//originalAmount
        row.add("");//debitAmount
        row.add("5");//creditAmount

        row.add("1");//asstSeq
        row.add("00001");//asstActType1
        row.add("1001");//asstActNumber1
        row.add("普通客户");//asstActName1
        row.add("物料");//asstActType2
        row.add("1101");//asstActNumber2
        row.add("电阻");//asstActName2

        row.add("0");//itemFlag
        row.add("");//oppAccountSeq
        row.add("");//oppAsstSeq
        row.add("");//primaryItem
        row.add("");//type
        row.add("");//cashflowAmountOriginal
        row.add("");//cashflowAmountLocal
        rows.add(row);

        //数据行3
        row = new ArrayList<String>();
        row.add(companyNumber);//companyNumber
        row.add(voucherNumber);//voucherNumber
        row.add(periodYear);//periodYear
        row.add(periodNumber);//periodNumber
        row.add(date);//bookedDate
        row.add(date);//bizDate
        row.add(voucherType);//voucherType
        row.add(description);//description
        row.add(voucherAbstract);//voucherAbstract
        row.add(creator);//creator

        row.add("2");//entrySeq
        row.add("1131.01.01");//accountNumber
        row.add("BB01");//currencyNumber
        row.add("0");//entryDC

        row.add("5");//originalAmount
        row.add("");//debitAmount
        row.add("5");//creditAmount

        row.add("2");//asstSeq
        row.add("00001");//asstActType1
        row.add("1002");//asstActNumber1
        row.add("重要客户");//asstActName1
        row.add("物料");//asstActType2
        row.add("1102");//asstActNumber2
        row.add("电容");//asstActName2

        row.add("0");//itemFlag
        row.add("");//oppAccountSeq
        row.add("");//oppAsstSeq
        row.add("");//primaryItem
        row.add("");//type
        row.add("");//cashflowAmountOriginal
        row.add("");//cashflowAmountLocal
        rows.add(row);

        //现金流量行1
        row = new ArrayList<String>();
        row.add(companyNumber);//companyNumber
        row.add(voucherNumber);//voucherNumber
        row.add(periodYear);//periodYear
        row.add(periodNumber);//periodNumber
        row.add("");//bookedDate
        row.add("");//bizDate
        row.add("");//voucherType
        row.add("");//description
        row.add("");//voucherAbstract
        row.add(creator);//creator

        row.add("1");//entrySeq
        row.add("");//accountNumber
        row.add("");//currencyNumber
        row.add("");//entryDC

        row.add("");//originalAmount
        row.add("");//debitAmount
        row.add("");//creditAmount

        row.add("");//asstSeq
        row.add("00001");//asstActType1
        row.add("1001");//asstActNumber1
        row.add("普通客户");//asstActName1
        row.add("物料");//asstActType2
        row.add("1101");//asstActNumber2
        row.add("电阻");//asstActName2

        row.add("1");//itemFlag
        row.add("2");//oppAccountSeq
        row.add("1");//oppAsstSeq
        row.add("CI1.01.03");//primaryItem
        row.add("2");//type
        row.add("5");//cashflowAmountOriginal
        row.add("5");//cashflowAmountLocal
        rows.add(row);

        //现金流量行2
        row = new ArrayList<String>();
        row.add(companyNumber);//companyNumber
        row.add(voucherNumber);//voucherNumber
        row.add(periodYear);//periodYear
        row.add(periodNumber);//periodNumber
        row.add("");//bookedDate
        row.add("");//bizDate
        row.add("");//voucherType
        row.add("");//description
        row.add("");//voucherAbstract
        row.add(creator);//creator

        row.add("1");//entrySeq
        row.add("");//accountNumber
        row.add("");//currencyNumber
        row.add("");//entryDC

        row.add("");//originalAmount
        row.add("");//debitAmount
        row.add("");//creditAmount

        row.add("");//asstSeq
        row.add("00001");//asstActType1
        row.add("1002");//asstActNumber1
        row.add("重要客户");//asstActName1
        row.add("物料");//asstActType2
        row.add("1102");//asstActNumber2
        row.add("电容");//asstActName2

        row.add("1");//itemFlag
        row.add("2");//oppAccountSeq
        row.add("2");//oppAsstSeq
        row.add("CI1.01.03");//primaryItem
        row.add("2");//type
        row.add("5");//cashflowAmountOriginal
        row.add("5");//cashflowAmountLocal
        rows.add(row);

        return rows;
    }
    public static void main(String[] args) {
        
    }
}
